package com.yongan.business.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yongan.business.entity.Business;

public interface BusinessDao {

	Business queryById(String businessId);
	
	List<Business> queryAll(@Param("offset")int offset
			,@Param("limit")int limit
			,@Param("type")String type);
	
	int insertBusiness(Business business);
	
	int deleteBusiness(String businessId);
	
	int updateBusiness(Business business);
	
	int queryCountByType(String type);
	
	List<Business> queryAllTree();
}
